<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <script src="../public/maincss.js"></script>


  </head>
  <body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight" id="main-block" v-cloak>
      <div class="row">
        <div class="col-sm-12">
          <div class="ibox float-e-margins">
              <div style="text-align: right">
                  <a href="javascript:void(0)" class="el-icon-message" @click="showApiEditEmail" style="color: #d58512"> 邮局接口设置</a>
                  &nbsp;&nbsp;
                  <a href="javascript:void(0)" class="el-icon-mobile-phone" @click="showApiEditSms" style="color: #d58512"> 短信接口设置</a>
              </div>
            <div class="managertitle">
              <ul class="manager-tab full-manager-tab bind-tab" id="ulTab">
                <li tag="mysellerlist" class="liactive" id="close" data="1"><a href="javascript:;" >邮件配置</a></li>
                <li tag="mysellersure"  id="open" data="2"><a  href="javascript:;" >短信配置</a></li>
              </ul>
            </div>
            <input type="hidden" id="type" value="1"/>
            <div class="tab_box">
              <div class="ibox-content">
                <div id="editable">
                	<table class="table table-striped table-bordered table-hover" style="table-layout:fixed;">
                	<thead>
                		<tr>
                			<th width="10%">序号</th>
                			<th width="20%">标题</th>
                			<th width="60%">内容</th>
                			<th width="10%">操作</th>
                		</tr>
                	</thead>
                	<tbody id="list"></tbody>
                	</table>
                </div>
                <div id="page" class="pager_container clearfix">
                    <input id="totalcount" type="hidden" value="0" />
                    <input id="pagenumber" type="hidden" value="1" />
                    <div id="pager"></div>
                </div>
                 </div>
              </div>
          </div>
        </div>
      </div>

        <el-dialog title="邮局接口设置" :visible.sync="dialogFormVisibleEmail">
            <el-form :model="apiFormEmail">
                <el-form-item label="发送服务器：" label-width="110px">
                    <el-input v-model="apiFormEmail.mailService"></el-input>
                </el-form-item>
                <el-form-item label="服务端口：" label-width="110px">
                    <el-input v-model="apiFormEmail.mailPort"></el-input>
                </el-form-item>
                <el-form-item label="邮箱名：" label-width="110px">
                    <el-input v-model="apiFormEmail.mailName"></el-input>
                </el-form-item>
                <el-form-item label="邮箱密码：" label-width="110px">
                    <el-input v-model="apiFormEmail.mailPassword" show-password></el-input>
                </el-form-item>
            </el-form>
            <div slot="footer" class="dialog-footer">
                <el-button type="primary" @click="saveApiSetEmail">确 定</el-button>
            </div>
        </el-dialog>

        <el-dialog title="短信接口设置（点集科接）" :visible.sync="dialogFormVisibleSms">
            <el-form :model="apiFormSms">
                <el-form-item label="是否开启短信通知：" label-width="160px">
                    <el-radio-group v-model="apiFormSms.ifOpenSms">
                        <el-radio label="2">关闭</el-radio>
                        <el-radio label="1">开启</el-radio>
                    </el-radio-group>
                </el-form-item>
                <el-form-item label="短信平台地址：" label-width="160px">
                    <el-input v-model="apiFormSms.hlSmsUrl"></el-input>
                </el-form-item>
                <el-form-item label="用户名：" label-width="160px">
                    <el-input v-model="apiFormSms.hlUsername"></el-input>
                </el-form-item>
                <el-form-item label="Token值：" label-width="160px">
                    <el-input v-model="apiFormSms.hlToken" show-password></el-input>
                </el-form-item>
            </el-form>
            <div slot="footer" class="dialog-footer">
                <el-button type="primary" @click="saveApiSetSms">确 定</el-button>
            </div>
        </el-dialog>

    </div>
    <div class="bus_list" style="display: none;" id="queryLogDetails">
	    <table class="manager-table table table-hover ">
	        <tbody id="vm-content">
	        </tbody>
	    </table>
	</div>
  </body>
  <script src="../public/main.js"></script>
  <script src="js/messageTemplate.js"></script>
</html>
